#define _CRT_SECURE_NO_WARNINGS 1
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
char* delet(char* arr, const char* arr2) {
	char* a1 = arr;
	while (*arr2)
	{
		a1 = arr;
		while (*a1)
		{
a:			if (*a1 == *arr2)
			{
				char* a2 = a1;
				while (*a2 != '\0')
				{
					*a2 = *(a2 + 1);
					a2++;
				}
			}
			if (*a1 != *arr2)
				a1++;
			else
				goto a;
		}
		arr2++;
	}
	return arr;
}
int main()
{
	char* arr = (char*)calloc(sizeof(char), 101);
	char* arr2 = (char*)calloc(sizeof(char), 101);
	if (arr == NULL || arr2 == NULL)
	{
		perror("calloc");
		return 1;
	}
	scanf("%[^\n]s", arr);
	getchar();
	scanf("%[^\n]s", arr2);
	printf("%s", delet(arr, arr2));
	free(arr);
	arr = NULL;
	free(arr2);
	arr2 = NULL;
}